package com.pro.common.jwt;

import com.pro.common.api.model.response.AccessToken;
import io.jsonwebtoken.SignatureAlgorithm;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class AccessTokenJwt extends AccessToken {

    public static final SignatureAlgorithm defaultAlgorithm = SignatureAlgorithm.HS512;

    private SignatureAlgorithm algorithm;  // eg: "HS512"

    public AccessTokenJwt(String accessToken, Long expiresIn, String type, SignatureAlgorithm algorithm) {
        super(null,accessToken, expiresIn, type);
        this.algorithm = algorithm;
    }
}
